package com.qianli.cashmama.trade.domain;

/**
 * 签转路径
 * <p>
 * Created by scrack on 2017/7/21.
 */
public class Transition {
    /**
     * 起始状态
     */
    private final int fromStatus;

    /**
     * 交易动作
     */
    private final String action;

    /**
     * 目标状态
     */
    private final int toStatus;

    // ~~~ 构造方法

    /**
     * 构建一个签转路径。
     *
     * @param fromStatus 起始状态
     * @param action     业务操作
     * @param toStatus   目标状态
     */
    public Transition(int fromStatus, String action, int toStatus) {
        super();
        this.fromStatus = fromStatus;
        this.action = action;
        this.toStatus = toStatus;
    }


    public int getFromStatus() {
        return fromStatus;
    }

    public String getAction() {
        return action;
    }

    public int getToStatus() {
        return toStatus;
    }
}
